feat: add go bindings for ant-ffi#23
Merged
Nic-dorman merged 8 commits intomaidsafe:mainfrom Feb 6, 2026
Merged
Conversation
Go bindings using CGO to call the Rust FFI library. Includes: - Core types: SecretKey, PublicKey, Chunk, DataMapChunk - Self-encryption: Encrypt/Decrypt functions - Key derivation: MainSecretKey, DerivedSecretKey, DerivationIndex - Network types: Pointer, Scratchpad, Register, GraphEntry, Vault - Async client operations with context cancellation support - Network and Wallet configuration - Comprehensive unit and integration tests Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Runs on push/PR to main: - Builds Rust FFI library - Builds Go bindings with CGO - Runs unit tests Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The dependabot bump to 0.10.0 was incomplete. This adds the required API changes: - Network::custom() now takes 4th parameter (royalties_pk_hex) - file_cost() now takes follow_symlinks and include_hidden params - dir_upload/dir_upload_public now take Wallet directly - file_content_upload uses BulkPaymentOption via .into() - dir_content_upload uses BulkPaymentOption via .into() Updated bindings: - PHP: Network.php, RustBuffer.php, ant_ffi.h - Swift: Regenerated UniFFI bindings Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
e9c6c06 to
c154ee7
Compare
- Add 7 cost estimation methods: ChunkCost, PointerCost, ScratchpadCost, RegisterCost, VaultCost, GraphEntryCost, ArchiveCost - Add pointer operations: PointerCreate, PointerUpdate, PointerCheckExistence - Add scratchpad operations: ScratchpadGetFromPublicKey, ScratchpadCreate, ScratchpadUpdate, ScratchpadCheckExistence - Add graph entry operation: GraphEntryCheckExistence - Add directory operations: DirUpload, DirUploadPublic, DirDownload, DirDownloadPublic - Add unit tests for cost methods - Add E2E integration test for upload/download roundtrip Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Remove unnecessary underscore assignment for pollVoidFuture which only returns error - Fix test to use Price field instead of Cost in UploadResult Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Adds C#, Lua, and Dart bindings from upstream. Adds Go section to README and Go ignores to .gitignore. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
context.Contextfor cancellation/timeout supportFiles
go/antffi/*.go- 18 source filesgo/antffi_test/*.go- 4 test filesgo/go.mod- Module definitionTest plan
go test ./...)go test -tags=integration ./...)